<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/

$route['default_controller'] = "index";
$route['404_override'] = '';

$route['search']                  = "index/jobList";
$route['jobList']                 = "index/jobList";

$route['jobDetail']               = "index/index";
$route['jobDetail/(:num)']        = "index/jobDetail/$1";

$route['apply']                   = "index/apply";
$route['apply/confirm']           = "index/apply_confirm_email";
$route['apply/complete']          = "index/apply";

$route['contact']                 = "index/contact";
$route['contact/confirm']         = "index/contact_confirm_email";
$route['contact/complete']        = "index/contact";

$route['selectField']             = "index/selectField";

// ******* ADMIN *******

$route['admin']                  = "admin/login/index";
$route['admin/logout']           = "admin/login/logout";
$route['admin/auth']             = "admin/login/auth";
$route['admin/main']             = "admin/admin/index";
$route['admin/change_password']  = "admin/admin/change_password";

$route['admin/category']         = "admin/category";
$route['admin/category_edit']    = "admin/category/edit";
$route['admin/field']            = "admin/field";
$route['admin/field_edit']       = "admin/field/edit";

$route['admin/job']              = "admin/job";
$route['admin/job_edit']         = "admin/job/edit";

$route['admin/candidate']        = "admin/candidate";
$route['admin/candidate_detail'] = "admin/candidate/edit";

$route['admin/contact']          = "admin/contact";
$route['admin/contact_detail']   = "admin/contact/edit";
/* End of file routes.php */
/* Location: ./application/config/routes.php */
